﻿using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IInsType
    {
        [OperationContract]
        int InsType_Using(int InsTypeID);

        [OperationContract]
        DataSet InsType_GetAll();

        [OperationContract]
        InsTypeInfo InsType_GetInfo(int InsTypeID);

        [OperationContract]
        DataSet InsType_GetList( out int ItemCount,int currentPage, int pageSize);

        [OperationContract]
        int InsType_Insert(InsTypeInfo eInfo);

        [OperationContract]
        bool InsType_Update(InsTypeInfo eInfo);

        [OperationContract]
        bool InsType_Delete(int InsTypeID);
        [OperationContract]
        bool InsType_Exist(string _Code);




    }
    [DataContract(Namespace = "http://HRMService")]
    public class InsTypeInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        string _Code;
        [DataMember]
        public string Code
        {
            get { return _Code; }
            set { _Code = value; }
        }

      
    }
}
